package com.money.mvp_dagger_simple.application;

import android.app.Application;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * 公共的Module  可以继续添加 也可以单独写 添加依赖到 AppComponent
 * Created by Money on 2017/8/25.
 */
@Singleton
@Module
public class AppModule {
    private Application application;

    public AppModule(Application application) {
        this.application = application;
    }


    @Provides
    @Singleton
    public Application  provideApplication(){
        return application;
    }

}
